﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Microhard.Framework.MVCHelper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    监管企业一览表
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="section-header">
        <div class="title">
            <img src="<%=Url.Content("~/Content/images/ico-catalog.png")%>" alt="" />
            监管企业一览表
        </div>
        <div class="options">
        </div>
    </div>
    <div>
        <table class="adminContent">
            <tr>
                <td class="adminTitle">
                    <img alt="开始日期" src="<%=Url.Content("~/Content/images/ico-help.gif") %>" title="开始日期"></img><label
                        for="operationName" title="开始日期">开始日期</label>:
                </td>
                <td class="adminData">
                    <%= Html.Telerik().DatePicker().Name("selectStartDate")%>
                </td>
            </tr>
            <tr>
                <td class="adminTitle">
                    <img alt="截止日期" src="<%=Url.Content("~/Content/images/ico-help.gif") %>" title="截止日期"></img><label
                        for="operationName" title="截止日期">截止日期</label>:
                </td>
                <td class="adminData">
                    <%= Html.Telerik().DatePicker().Name("selectEndDate")%>
                </td>
            </tr>
        </table>
    </div>
    <table class="adminContent">
        <tr>
            <td>
                <div style="width: 1320px; overflow-x: scroll; text-align: left">
                    <%Html.Telerik().Grid<Microhard.WarehouseInsp.Buz.Models.SuperviseEnterpriseReportModel>((List<Microhard.WarehouseInsp.Buz.Models.SuperviseEnterpriseReportModel>)this.Model.Data)
                    .Name("operation-grid").
                    ToolBar(t => t.Template(g =>
                    {%>
                    <%
                        var searchParams = new Dictionary<string, string>();
                        searchParams.Add("StartTime", "selectStartDate");
                        searchParams.Add("EndTime", "selectEndDate");
                    %>
                    <div class="header-menu">
                        <ul class="t-widget t-reset t-header t-menu">
                            <li class="t-item  t-state-default">
                                <%=Html.Authorized_SearchButton("btnSearch", "查询", "operation-grid", searchParams, "OperationGridOnGridDataBinding")%>
                            </li>
                        </ul>
                    </div>
                    <% })).
                    ClientEvents(events => events.OnDataBinding("OperationGridOnGridDataBinding")).
                    Columns(columns =>
                    {
                        columns.Bound(o => o.Project.MortgagorName).Title("出质人").Width(100);
                        columns.Bound(o => o.Project.MortgagorFRName).Title("出质人法人代表").Width(100);
                        columns.Bound(o => o.Project.MortgagorFRCellphone).Title("出质人法人电话").Width(100);
                        columns.Bound(o => o.Project.MortgagorFRName).Title("出质人法人").Width(100);
                        columns.Bound(o => o.Project.MortgagorContractorName).Title("出质人联系人").Width(100);
                        columns.Bound(o => o.Project.MortgagorContractorCellphone).Title("出质人电话").Width(100);
                        columns.Bound(o => o.PlanPlg.Product.Name).Title("抵押物").Width(100);
                        columns.Bound(o => o.PlanPlg.Warehouse.Name).Title("仓库地址").Width(100);
                        columns.Bound(o => o.Project.PedgeeCompanyName).Title("质权人").Width(100);
                        columns.Bound(o => o.Project.PedgeeContactor).Title("质权人联系人").Width(100);
                        columns.Bound(o => o.Project.PedgeeContactorPhone).Title("质权人联系人电话").Width(100);
                        columns.Bound(o => o.Project.Credit).Format("{0:c}").Title("授信额度").Width(100);
                        columns.Bound(o => o.RealSend).Format("{0:c}").Title("实际放款").Width(100);
                        columns.Bound(o => o.Project.Rate).Format("{0:c}").Title("折率百分比").Width(100);
                        columns.Bound(o => o.GuideLine).Format("{0:c}").Title("底线货值").Width(100);
                        columns.Bound(o => o.CurrentAmount).Format("{0:c}").Title("当天库存(元)").Width(100);
                        columns.Bound(o => o.RentRange).Title("货款期限").Width(100);
                        columns.Bound(o => o.PrjType).Title("动态/静态").Width(100);
                        columns.Bound(o => o.Project.SupervisionFee).Format("{0:c}").Title("监管费用").Width(100);
                        columns.Bound(o => o.Project.SupInsuranceCharge).Format("{0:c}").Title("保险费").Width(100);
                        columns.Bound(o => o.Project.Guarantee).Format("{0:c}").Title("履约保证金").Width(100);
                        columns.Bound(o => o.Project.SalerName).Title("业务联系人").Width(100);

                    }
                    )
                    .DataBinding(databing => databing.Ajax().Select("_ListWithNoPaging", "EnterpriseReport"))
                    .EnableCustomBinding(true)
                    .Scrollable()
                    .Sortable()
                    .Render();
                    %>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
